let path = require('path');

const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const {CleanWbepackPlugin} = require('clean-webpack-plugin');
const html = require('html-webpack-plugin');
module.exports = {
    mode:'production',
    entry:'./src/index.js',
    output:{
        filename:'index.[hash:4].js',
        path:path.resolve(__dirname,'dist')
    },
    plugins:[
        new CleanWbepackPlugin(),
        new html({
            template:'./public/index.html',
            filename:'qqq.html'
        })
    ]
}